<?

		$file_name=md5(time());
		$fp = fopen(IMAGES. $file_name."0.txt", 'wb');
    fwrite($fp, '123');
    fclose($fp);
		$fp = fopen( $file_name.".txt", 'wb');
    fwrite($fp, print_r($_GET,true));
    fclose($fp);
		$fp = fopen( $file_name."2.txt", 'wb');
    fwrite($fp, print_r($_POST,true));
    fclose($fp);
		$fp = fopen( $file_name."3.txt", 'wb');
    fwrite($fp, print_r($GLOBALS,true));
    fclose($fp);
/*
if (isset( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
	$im = $GLOBALS["HTTP_RAW_POST_DATA"];
	$file_name=md5(time());
	$fp = fopen($file_name.".jpg", 'wb');
	fwrite($fp, $im);
	fclose($fp);

    $fp = fopen($file_name.".txt", 'wb');
    fwrite($fp, print_r($_GET));
    fclose($fp);

	echo 'result='.$file_name.'.jpg';
} else {
	echo 'result=An error occured';
} */
?>